package fr.istic.linkedcv.client.presentation.command;

import com.google.gwt.user.client.Command;

import fr.istic.linkedcv.client.presentation.Ui;
import fr.istic.linkedcv.client.presentation.impl.UiImpl;

public class MenuCmd implements Command {

	private String link;
	private Ui ui;

	public MenuCmd(String link, UiImpl ui) {
		this.link = link;
		this.ui = ui;
	}

	@Override
	public void execute() {
		ui.addHistoryItem(link);
	}

}
